#include "lib/unistd.h"
#include "lib/math.h"
#include "process/kmalloc_test_proc_1.h"

void kmalloc_test_proc_1() 
{
	int i=0;
	int j=0;
	void *mem_add;
	void *mem_add_1;
	void *mem_add_2;
	unsigned int mem_size;
	unsigned int counter;
	counter=0;
	void *buf[100];
	void *dump[100];
	//for(;;);
	for (i=0;i<100;i++)
	{
		mem_add=malloc(16384);
		*((char*)mem_add)=i;
		*((char*)mem_add+1)=i+1;
		*((char*)mem_add+2)=i+2;
		*((char*)mem_add+3)=i+3;
		buf[i]=mem_add;
		
	}
	dump[99]= buf[18];    
	dump[98]= buf[10];    
	dump[97]= buf[32];   
	dump[96]= buf[33];   
	dump[95]= buf[55];    
	dump[94]= buf[46];    
	dump[93]= buf[97];   
	dump[92]= buf[66];    
	dump[91]= buf[0];     
	dump[90]= buf[70];    
	dump[89]= buf[54];    
	dump[88]= buf[22];    
	dump[87]= buf[65];    
	dump[86]= buf[39];    
	dump[85]= buf[7];     
	dump[84]= buf[25];    
	dump[83]= buf[41];    
	dump[82]= buf[31];    
	dump[81]= buf[71];    
	dump[80]= buf[72];    
	dump[79]= buf[19];    
	dump[78]= buf[73];    
	dump[77]= buf[74];   
	dump[76]= buf[9];     
	dump[75]= buf[69];    
	dump[74]= buf[21];  
	dump[73]= buf[45];    
	dump[72]= buf[64];    
	dump[71]= buf[20];    
	dump[70]= buf[53];    
	dump[69]= buf[38];    
	dump[68]= buf[1];     
	dump[67]= buf[30];   
	dump[66]= buf[75];    
	dump[65]= buf[8];     
	dump[64]= buf[24];    
	dump[63]= buf[98];    
	dump[62]= buf[17];   
	dump[61]= buf[52];    
	dump[60]= buf[40];    
	dump[59]= buf[4];     
	dump[58]= buf[63];    
	dump[57]= buf[76];    
	dump[56]= buf[47];    
	dump[55]= buf[77];    
	dump[54]= buf[11];    
	dump[53]= buf[78];   
	dump[52]= buf[44];    
	dump[51]= buf[3];     
	dump[50]= buf[68];    
	dump[49]= buf[37];    
	dump[48]= buf[79];    
	dump[47]= buf[23];    
	dump[46]= buf[80];    
	dump[45]= buf[34];    
	dump[44]= buf[2];     
	dump[43]= buf[56];    
	dump[42]= buf[48];    
	dump[41]= buf[62];    
	dump[40]= buf[81];    
	dump[39]= buf[13];    
	dump[38]= buf[82];    
	dump[37]= buf[99];     
	dump[36]= buf[67];   
	dump[35]= buf[43];   
	dump[34]= buf[83];    
	dump[33]= buf[6];     
	dump[32]= buf[84];    
	dump[31]= buf[57];    
	dump[30]= buf[61];    
	dump[29]= buf[26];    
	dump[28]= buf[49];    
	dump[27]= buf[85];    
	dump[26]= buf[12];    
	dump[25]= buf[86];   
	dump[24]= buf[87];    
	dump[23]= buf[16];  
	dump[22]= buf[88];    
	dump[21]= buf[29];    
	dump[20]= buf[36];    
	dump[19]= buf[5];     
	dump[18]= buf[58];    
	dump[17]= buf[89];    
	dump[16]= buf[42];    
	dump[15]= buf[90];    
	dump[14]= buf[91];    
	dump[13]= buf[28];    
	dump[12]= buf[92];    
	dump[11]= buf[50];    
	dump[10]= buf[93];    
	dump[9]= buf[59];    
	dump[8]= buf[15];    
	dump[7]= buf[94];    
	dump[6]= buf[51];    
	dump[5]= buf[95];    
	dump[4]= buf[27];    
	dump[3]= buf[96];    
	dump[2]= buf[35];    
	dump[1]= buf[60];    
	dump[0]= buf[14];    

	free(buf[18]);    //0---18--1
	free(buf[10]);    //1--10
	free(buf[32]);    //2---32
	free(buf[33]);    //3---33
	free(buf[55]);    //4---55
	free(buf[46]);    //5---46
	free(buf[97]);    //6---97
	free(buf[66]);    //7---66
	free(buf[0]);     //8---0
	free(buf[70]);    //9---70
	free(buf[54]);    //10---54--2
	free(buf[22]);    //11---22
	free(buf[65]);    //12---65
	free(buf[39]);    //13---39
	free(buf[7]);     //14--7
	free(buf[25]);    //15---25
	free(buf[41]);    //16---41
	free(buf[31]);    //17---31
	free(buf[71]);    //18---71
	free(buf[72]);    //19---72
	free(buf[19]);    //20---19--3
	free(buf[73]);    //21---73
	free(buf[74]);    //22---74
	free(buf[9]);     //23--9
	free(buf[69]);    //24---69
	free(buf[21]);    //25---21
	free(buf[45]);    //26---45
	free(buf[64]);    //27---64
	free(buf[20]);    //28---20
	free(buf[53]);    //29---53
	free(buf[38]);    //30---38--4
	free(buf[1]);     //31---1
	free(buf[30]);    //32---30
	free(buf[75]);    //33---75
	free(buf[8]);     //34--8
	free(buf[24]);    //35---24
	free(buf[98]);    //36---98
	free(buf[17]);    //37---17
	free(buf[52]);    //38--52
	free(buf[40]);    //39---40
	free(buf[4]);     //40---4--5
	free(buf[63]);    //41---63
	free(buf[76]);    //42---76
	free(buf[47]);    //43---47
	free(buf[77]);    //44---77
	free(buf[11]);    //45--11
	free(buf[78]);    //46---78
	free(buf[44]);    //47---44
	free(buf[3]);     //48---3
	free(buf[68]);    //49---68
	free(buf[37]);    //50---37--6
	free(buf[79]);    //51---79
	free(buf[23]);    //52---23
	free(buf[80]);    //53---80
	free(buf[34]);    //54---34
	free(buf[2]);     //55---2
	free(buf[56]);    //56---56
	free(buf[48]);    //57---48
	free(buf[62]);    //58---62
	free(buf[81]);    //59---81
	free(buf[13]);    //60--13--7
	free(buf[82]);    //61---82
	free(buf[99]);     //62---99
	free(buf[67]);    //63---67
	free(buf[43]);    //64---43
	free(buf[83]);    //65---83
	free(buf[6]);     //66---6
	free(buf[84]);    //67---84
	free(buf[57]);    //68---57
	free(buf[61]);    //69---61
	free(buf[26]);    //70---26--8
	free(buf[49]);    //71---49
	free(buf[85]);    //72---85
	free(buf[12]);    //73--12
	free(buf[86]);    //74---86
	free(buf[87]);    //75---87
	free(buf[16]);    //76---16
	free(buf[88]);    //77---88
	free(buf[29]);    //78---29
	free(buf[36]);    //79--36
	free(buf[5]);     //80---5--9
	free(buf[58]);    //81---58
	free(buf[89]);    //82---89
	free(buf[42]);    //83---42
	free(buf[90]);    //84---90
	free(buf[91]);    //85---91
	free(buf[28]);    //86---28
	free(buf[92]);    //87---92
	free(buf[50]);    //88---50
	free(buf[93]);    //89---93
	free(buf[59]);    //90---59--10
	free(buf[15]);    //91---15
	free(buf[94]);    //92---94
	free(buf[51]);    //93---51
	free(buf[95]);    //94---95
	free(buf[27]);    //95---27
	free(buf[96]);    //96---96
	free(buf[35]);    //97---35
	free(buf[60]);    //98---60
	free(buf[14]);    //99---14
	for (i=0;i<100;i++) 
	{
		mem_add=malloc(16384);
		*((char*)mem_add)=i;
		*((char*)mem_add+1)=i+1;
		*((char*)mem_add+2)=i+2;
		*((char*)mem_add+3)=i+3;
		buf[i]=mem_add;
	}

	dump[99]=buf[4];     //40---4--5
	dump[98]=buf[63];    //41---63
	dump[97]=buf[76];    //42---76
	dump[96]=buf[47];    //43---47
	dump[95]=buf[77];    //44---77
	dump[94]=buf[11];    //45--11
	dump[93]=buf[78];    //46---78
	dump[92]=buf[44];    //47---44
	dump[91]=buf[3];     //48---3
	dump[90]=buf[68];    //49---68
	dump[89]=buf[13];    //60--13--7
	dump[88]=buf[82];    //61---82
	dump[87]=buf[99];     //62---99
	dump[86]=buf[67];    //63---67
	dump[85]=buf[43];    //64---43
	dump[84]=buf[83];    //65---83
	dump[83]=buf[6];     //66---6
	dump[82]=buf[84];    //67---84
	dump[81]=buf[57];    //68---57
	dump[80]=buf[61];    //69---61
	dump[79]=buf[18];    //0---18--1
	dump[78]=buf[10];    //1--10
	dump[77]=buf[32];    //2---32
	dump[76]=buf[33];    //3---33
	dump[75]=buf[55];    //4---55
	dump[74]=buf[46];    //5---46
	dump[73]=buf[97];    //6---97
	dump[72]=buf[66];    //7---66
	dump[71]=buf[0];     //8---0
	dump[70]=buf[70];    //9---70
	dump[69]=buf[5];     //80---5--9
	dump[68]=buf[58];    //81---58
	dump[67]=buf[89];    //82---89
	dump[66]=buf[42];    //83---42
	dump[65]=buf[90];    //84---90
	dump[64]=buf[91];    //85---91
	dump[63]=buf[28];    //86---28
	dump[62]=buf[92];    //87---92
	dump[61]=buf[50];    //88---50
	dump[60]=buf[93];    //89---93
	dump[59]=buf[19];    //20---19--3
	dump[58]=buf[73];    //21---73
	dump[57]=buf[74];    //22---74
	dump[56]=buf[9];     //23--9
	dump[55]=buf[69];    //24---69
	dump[54]=buf[21];    //25---21
	dump[53]=buf[45];    //26---45
	dump[52]=buf[64];    //27---64
	dump[51]=buf[20];    //28---20
	dump[50]=buf[53];    //29---53
	dump[49]=buf[37];    //50---37--6
	dump[48]=buf[79];    //51---79
	dump[47]=buf[23];    //52---23
	dump[46]=buf[80];    //53---80
	dump[45]=buf[34];    //54---34
	dump[44]=buf[2];     //55---2
	dump[43]=buf[56];    //56---56
	dump[42]=buf[48];    //57---48
	dump[41]=buf[62];    //58---62
	dump[40]=buf[81];    //59---81
	dump[39]=buf[59];    //90---59--10
	dump[38]=buf[15];    //91---15
	dump[37]=buf[94];    //92---94
	dump[36]=buf[51];    //93---51
	dump[35]=buf[95];    //94---95
	dump[34]=buf[27];    //95---27
	dump[33]=buf[96];    //96---96
	dump[32]=buf[35];    //97---35
	dump[31]=buf[60];    //98---60
	dump[30]=buf[14];    //99---14
	dump[29]=buf[54];    //10---54--2
	dump[28]=buf[22];    //11---22
	dump[27]=buf[65];    //12---65
	dump[26]=buf[39];    //13---39
	dump[25]=buf[7];     //14--7
	dump[24]=buf[25];    //15---25
	dump[23]=buf[41];    //16---41
	dump[22]=buf[31];    //17---31
	dump[21]=buf[71];    //18---71
	dump[20]=buf[72];    //19---72
	dump[19]=buf[38];    //30---38--4
	dump[18]=buf[1];     //31---1
	dump[17]=buf[30];    //32---30
	dump[16]=buf[75];    //33---75
	dump[15]=buf[8];     //34--8
	dump[14]=buf[24];    //35---24
	dump[13]=buf[98];    //36---98
	dump[12]=buf[17];    //37---17
	dump[11]=buf[52];    //38--52
	dump[10]=buf[40];    //39---40
	dump[9]=buf[26];    //70---26--8
	dump[8]=buf[49];    //71---49
	dump[7]=buf[85];    //72---85
	dump[6]=buf[12];    //73--12
	dump[5]=buf[86];    //74---86
	dump[4]=buf[87];    //75---87
	dump[3]=buf[16];    //76---16
	dump[2]=buf[88];    //77---88
	dump[1]=buf[29];    //78---29
	dump[0]=buf[36];    //79--36
	
	//5-7-1-9-3-6-10-2-4-8
	free(buf[4]);     //40---4--5
	free(buf[63]);    //41---63
	free(buf[76]);    //42---76
	free(buf[47]);    //43---47
	free(buf[77]);    //44---77
	free(buf[11]);    //45--11
	free(buf[78]);    //46---78
	free(buf[44]);    //47---44
	free(buf[3]);     //48---3
	free(buf[68]);    //49---68
	free(buf[13]);    //60--13--7
	free(buf[82]);    //61---82
	free(buf[99]);     //62---99
	free(buf[67]);    //63---67
	free(buf[43]);    //64---43
	free(buf[83]);    //65---83
	free(buf[6]);     //66---6
	free(buf[84]);    //67---84
	free(buf[57]);    //68---57
	free(buf[61]);    //69---61
	free(buf[18]);    //0---18--1
	free(buf[10]);    //1--10
	free(buf[32]);    //2---32
	free(buf[33]);    //3---33
	free(buf[55]);    //4---55
	free(buf[46]);    //5---46
	free(buf[97]);    //6---97
	free(buf[66]);    //7---66
	free(buf[0]);     //8---0
	free(buf[70]);    //9---70
	free(buf[5]);     //80---5--9
	free(buf[58]);    //81---58
	free(buf[89]);    //82---89
	free(buf[42]);    //83---42
	free(buf[90]);    //84---90
	free(buf[91]);    //85---91
	free(buf[28]);    //86---28
	free(buf[92]);    //87---92
	free(buf[50]);    //88---50
	free(buf[93]);    //89---93
	free(buf[19]);    //20---19--3
	free(buf[73]);    //21---73
	free(buf[74]);    //22---74
	free(buf[9]);     //23--9
	free(buf[69]);    //24---69
	free(buf[21]);    //25---21
	free(buf[45]);    //26---45
	free(buf[64]);    //27---64
	free(buf[20]);    //28---20
	free(buf[53]);    //29---53
	free(buf[37]);    //50---37--6
	free(buf[79]);    //51---79
	free(buf[23]);    //52---23
	free(buf[80]);    //53---80
	free(buf[34]);    //54---34
	free(buf[2]);     //55---2
	free(buf[56]);    //56---56
	free(buf[48]);    //57---48
	free(buf[62]);    //58---62
	free(buf[81]);    //59---81
	free(buf[59]);    //90---59--10
	free(buf[15]);    //91---15
	free(buf[94]);    //92---94
	free(buf[51]);    //93---51
	free(buf[95]);    //94---95
	free(buf[27]);    //95---27
	free(buf[96]);    //96---96
	free(buf[35]);    //97---35
	free(buf[60]);    //98---60
	free(buf[14]);    //99---14
	free(buf[54]);    //10---54--2
	free(buf[22]);    //11---22
	free(buf[65]);    //12---65
	free(buf[39]);    //13---39
	free(buf[7]);     //14--7
	free(buf[25]);    //15---25
	free(buf[41]);    //16---41
	free(buf[31]);    //17---31
	free(buf[71]);    //18---71
	free(buf[72]);    //19---72
	free(buf[38]);    //30---38--4
	free(buf[1]);     //31---1
	free(buf[30]);    //32---30
	free(buf[75]);    //33---75
	free(buf[8]);     //34--8
	free(buf[24]);    //35---24
	free(buf[98]);    //36---98
	free(buf[17]);    //37---17
	free(buf[52]);    //38--52
	free(buf[40]);    //39---40
	free(buf[26]);    //70---26--8
	free(buf[49]);    //71---49
	free(buf[85]);    //72---85
	free(buf[12]);    //73--12
	free(buf[86]);    //74---86
	free(buf[87]);    //75---87
	free(buf[16]);    //76---16
	free(buf[88]);    //77---88
	free(buf[29]);    //78---29
	free(buf[36]);    //79--36
	for (i=0;i<100;i++)
	{
		mem_add=malloc(16384);
		*((char*)mem_add)=i;
		*((char*)mem_add+1)=i+1;
		*((char*)mem_add+2)=i+2;
		*((char*)mem_add+3)=i+3;
		buf[i]=mem_add;
	}

        dump[99]=buf[38];    //30---38--4
	dump[98]=buf[1];     //31---1
	dump[97]=buf[30];    //32---30
	dump[96]=buf[75];    //33---75
	dump[95]=buf[8];     //34--8
	dump[94]=buf[24];    //35---24
	dump[93]=buf[98];    //36---98
	dump[92]=buf[17];    //37---17
	dump[91]=buf[52];    //38--52
	dump[90]=buf[40];    //39---40
	dump[89]=buf[18];    //0---18--1
	dump[88]=buf[10];    //1--10
	dump[87]=buf[32];    //2---32
	dump[86]=buf[33];    //3---33
	dump[85]=buf[55];    //4---55
	dump[84]=buf[46];    //5---46
	dump[83]=buf[97];    //6---97
	dump[82]=buf[66];    //7---66
	dump[81]=buf[0];     //8---0
	dump[80]=buf[70];    //9---70
	dump[79]=buf[5];     //80---5--9
	dump[78]=buf[58];    //81---58
	dump[77]=buf[89];    //82---89
	dump[76]=buf[42];    //83---42
	dump[75]=buf[90];    //84---90
	dump[74]=buf[91];    //85---91
	dump[73]=buf[28];    //86---28
	dump[72]=buf[92];    //87---92
	dump[71]=buf[50];    //88---50
	dump[70]=buf[93];    //89---93
	dump[69]=buf[4];     //40---4--5
	dump[68]=buf[63];    //41---63
	dump[67]=buf[76];    //42---76
	dump[66]=buf[47];    //43---47
	dump[65]=buf[77];    //44---77
	dump[64]=buf[11];    //45--11
	dump[63]=buf[78];    //46---78
	dump[62]=buf[44];    //47---44
	dump[61]=buf[3];     //48---3
	dump[60]=buf[68];    //49---68
	dump[59]=buf[19];    //20---19--3
	dump[58]=buf[73];    //21---73
	dump[57]=buf[74];    //22---74
	dump[56]=buf[9];     //23--9
	dump[55]=buf[69];    //24---69
	dump[54]=buf[21];    //25---21
	dump[53]=buf[45];    //26---45
	dump[52]=buf[64];    //27---64
	dump[51]=buf[20];    //28---20
	dump[50]=buf[53];    //29---53
	dump[49]=buf[13];    //60--13--7
	dump[48]=buf[82];    //61---82
	dump[47]=buf[99];     //62---99
	dump[46]=buf[67];    //63---67
	dump[45]=buf[43];    //64---43
	dump[44]=buf[83];    //65---83
	dump[43]=buf[6];     //66---6
	dump[42]=buf[84];    //67---84
	dump[41]=buf[57];    //68---57
	dump[40]=buf[61];    //69---61
	dump[39]=buf[54];    //10---54--2
	dump[38]=buf[22];    //11---22
	dump[37]=buf[65];    //12---65
	dump[36]=buf[39];    //13---39
	dump[35]=buf[7];     //14--7
	dump[34]=buf[25];    //15---25
	dump[33]=buf[41];    //16---41
	dump[32]=buf[31];    //17---31
	dump[31]=buf[71];    //18---71
	dump[30]=buf[72];    //19---72
	dump[29]=buf[37];    //50---37--6
	dump[28]=buf[79];    //51---79
	dump[27]=buf[23];    //52---23
	dump[26]=buf[80];    //53---80
	dump[25]=buf[34];    //54---34
	dump[24]=buf[2];     //55---2
	dump[23]=buf[56];    //56---56
	dump[22]=buf[48];    //57---48
	dump[21]=buf[62];    //58---62
	dump[20]=buf[81];    //59---81
	dump[19]=buf[59];    //90---59--10
	dump[18]=buf[15];    //91---15
	dump[17]=buf[94];    //92---94
	dump[16]=buf[51];    //93---51
	dump[15]=buf[95];    //94---95
	dump[14]=buf[27];    //95---27
	dump[13]=buf[96];    //96---96
	dump[12]=buf[35];    //97---35
	dump[11]=buf[60];    //98---60
	dump[10]=buf[14];    //99---14
	dump[9]=buf[26];    //70---26--8
	dump[8]=buf[49];    //71---49
	dump[7]=buf[85];    //72---85
	dump[6]=buf[12];    //73--12
	dump[5]=buf[86];    //74---86
	dump[4]=buf[87];    //75---87
	dump[3]=buf[16];    //76---16
	dump[2]=buf[88];    //77---88
	dump[1]=buf[29];    //78---29
	dump[0]=buf[36];    //79--36

	//4-1-9-5-3-7-2-6-10-8
	free(buf[38]);    //30---38--4
	free(buf[1]);     //31---1
	free(buf[30]);    //32---30
	free(buf[75]);    //33---75
	free(buf[8]);     //34--8
	free(buf[24]);    //35---24
	free(buf[98]);    //36---98
	free(buf[17]);    //37---17
	free(buf[52]);    //38--52
	free(buf[40]);    //39---40
	free(buf[18]);    //0---18--1
	free(buf[10]);    //1--10
	free(buf[32]);    //2---32
	free(buf[33]);    //3---33
	free(buf[55]);    //4---55
	free(buf[46]);    //5---46
	free(buf[97]);    //6---97
	free(buf[66]);    //7---66
	free(buf[0]);     //8---0
	free(buf[70]);    //9---70
	free(buf[5]);     //80---5--9
	free(buf[58]);    //81---58
	free(buf[89]);    //82---89
	free(buf[42]);    //83---42
	free(buf[90]);    //84---90
	free(buf[91]);    //85---91
	free(buf[28]);    //86---28
	free(buf[92]);    //87---92
	free(buf[50]);    //88---50
	free(buf[93]);    //89---93
	free(buf[4]);     //40---4--5
	free(buf[63]);    //41---63
	free(buf[76]);    //42---76
	free(buf[47]);    //43---47
	free(buf[77]);    //44---77
	free(buf[11]);    //45--11
	free(buf[78]);    //46---78
	free(buf[44]);    //47---44
	free(buf[3]);     //48---3
	free(buf[68]);    //49---68
	free(buf[19]);    //20---19--3
	free(buf[73]);    //21---73
	free(buf[74]);    //22---74
	free(buf[9]);     //23--9
	free(buf[69]);    //24---69
	free(buf[21]);    //25---21
	free(buf[45]);    //26---45
	free(buf[64]);    //27---64
	free(buf[20]);    //28---20
	free(buf[53]);    //29---53
	free(buf[13]);    //60--13--7
	free(buf[82]);    //61---82
	free(buf[99]);     //62---99
	free(buf[67]);    //63---67
	free(buf[43]);    //64---43
	free(buf[83]);    //65---83
	free(buf[6]);     //66---6
	free(buf[84]);    //67---84
	free(buf[57]);    //68---57
	free(buf[61]);    //69---61
	free(buf[54]);    //10---54--2
	free(buf[22]);    //11---22
	free(buf[65]);    //12---65
	free(buf[39]);    //13---39
	free(buf[7]);     //14--7
	free(buf[25]);    //15---25
	free(buf[41]);    //16---41
	free(buf[31]);    //17---31
	free(buf[71]);    //18---71
	free(buf[72]);    //19---72
	free(buf[37]);    //50---37--6
	free(buf[79]);    //51---79
	free(buf[23]);    //52---23
	free(buf[80]);    //53---80
	free(buf[34]);    //54---34
	free(buf[2]);     //55---2
	free(buf[56]);    //56---56
	free(buf[48]);    //57---48
	free(buf[62]);    //58---62
	free(buf[81]);    //59---81
	free(buf[59]);    //90---59--10
	free(buf[15]);    //91---15
	free(buf[94]);    //92---94
	free(buf[51]);    //93---51
	free(buf[95]);    //94---95
	free(buf[27]);    //95---27
	free(buf[96]);    //96---96
	free(buf[35]);    //97---35
	free(buf[60]);    //98---60
	free(buf[14]);    //99---14
	free(buf[26]);    //70---26--8
	free(buf[49]);    //71---49
	free(buf[85]);    //72---85
	free(buf[12]);    //73--12
	free(buf[86]);    //74---86
	free(buf[87]);    //75---87
	free(buf[16]);    //76---16
	free(buf[88]);    //77---88
	free(buf[29]);    //78---29
	free(buf[36]);    //79--36
	for (i=0;i<100;i++)
	{
		mem_add=malloc(16384);
		*((char*)mem_add)=i;
		*((char*)mem_add+1)=i+1;
		*((char*)mem_add+2)=i+2;
		*((char*)mem_add+3)=i+3;
		buf[i]=mem_add;
	}

	dump[99]=buf[13];    //60--13--7
	dump[98]=buf[82];    //61---82
	dump[97]=buf[99];     //62---99
	dump[96]=buf[67];    //63---67
	dump[95]=buf[43];    //64---43
	dump[94]=buf[83];    //65---83
	dump[93]=buf[6];     //66---6
	dump[92]=buf[84];    //67---84
	dump[91]=buf[57];    //68---57
	dump[90]=buf[61];    //69---61
	dump[89]=buf[38];    //30---38--4
	dump[88]=buf[1];     //31---1
	dump[87]=buf[30];    //32---30
	dump[86]=buf[75];    //33---75
	dump[85]=buf[8];     //34--8
	dump[84]=buf[24];    //35---24
	dump[83]=buf[98];    //36---98
	dump[82]=buf[17];    //37---17
	dump[81]=buf[52];    //38--52
	dump[80]=buf[40];    //39---40
	dump[79]=buf[18];    //0---18--1
	dump[78]=buf[10];    //1--10
	dump[77]=buf[32];    //2---32
	dump[76]=buf[33];    //3---33
	dump[75]=buf[55];    //4---55
	dump[74]=buf[46];    //5---46
	dump[73]=buf[97];    //6---97
	dump[72]=buf[66];    //7---66
	dump[71]=buf[0];     //8---0
	dump[70]=buf[70];    //9---70
	dump[69]=buf[26];    //70---26--8
	dump[68]=buf[49];    //71---49
	dump[67]=buf[85];    //72---85
	dump[66]=buf[12];    //73--12
	dump[65]=buf[86];    //74---86
	dump[64]=buf[87];    //75---87
	dump[63]=buf[16];    //76---16
	dump[62]=buf[88];    //77---88
	dump[61]=buf[29];    //78---29
	dump[60]=buf[36];    //79--36
	dump[59]=buf[4];     //40---4--5
	dump[58]=buf[63];    //41---63
	dump[57]=buf[76];    //42---76
	dump[56]=buf[47];    //43---47
	dump[55]=buf[77];    //44---77
	dump[54]=buf[11];    //45--11
	dump[53]=buf[78];    //46---78
	dump[52]=buf[44];    //47---44
	dump[51]=buf[3];     //48---3
	dump[50]=buf[68];    //49---68
	dump[49]=buf[54];    //10---54--2
	dump[48]=buf[22];    //11---22
	dump[47]=buf[65];    //12---65
	dump[46]=buf[39];    //13---39
	dump[45]=buf[7];     //14--7
	dump[44]=buf[25];    //15---25
	dump[43]=buf[41];    //16---41
	dump[42]=buf[31];    //17---31
	dump[41]=buf[71];    //18---71
	dump[40]=buf[72];    //19---72
	dump[39]=buf[5];     //80---5--9
	dump[38]=buf[58];    //81---58
	dump[37]=buf[89];    //82---89
	dump[36]=buf[42];    //83---42
	dump[35]=buf[90];    //84---90
	dump[34]=buf[91];    //85---91
	dump[33]=buf[28];    //86---28
	dump[32]=buf[92];    //87---92
	dump[31]=buf[50];    //88---50
	dump[30]=buf[93];    //89---93
	dump[29]=buf[19];    //20---19--3
	dump[28]=buf[73];    //21---73
	dump[27]=buf[74];    //22---74
	dump[26]=buf[9];     //23--9
	dump[25]=buf[69];    //24---69
	dump[24]=buf[21];    //25---21
	dump[23]=buf[45];    //26---45
	dump[22]=buf[64];    //27---64
	dump[21]=buf[20];    //28---20
	dump[20]=buf[53];    //29---53
	dump[19]=buf[59];    //90---59--10
	dump[18]=buf[15];    //91---15
	dump[17]=buf[94];    //92---94
	dump[16]=buf[51];    //93---51
	dump[15]=buf[95];    //94---95
	dump[14]=buf[27];    //95---27
	dump[13]=buf[96];    //96---96
	dump[12]=buf[35];    //97---35
	dump[11]=buf[60];    //98---60
	dump[10]=buf[14];    //99---14
	dump[9]=buf[37];    //50---37--6
	dump[8]=buf[79];    //51---79
	dump[7]=buf[23];    //52---23
	dump[6]=buf[80];    //53---80
	dump[5]=buf[34];    //54---34
	dump[4]=buf[2];     //55---2
	dump[3]=buf[56];    //56---56
	dump[2]=buf[48];    //57---48
	dump[1]=buf[62];    //58---62
	dump[0]=buf[81];    //59---81

	//7-4-1-8-5-2-9-3-10-6
	free(buf[13]);    //60--13--7
	free(buf[82]);    //61---82
	free(buf[99]);     //62---99
	free(buf[67]);    //63---67
	free(buf[43]);    //64---43
	free(buf[83]);    //65---83
	free(buf[6]);     //66---6
	free(buf[84]);    //67---84
	free(buf[57]);    //68---57
	free(buf[61]);    //69---61
	free(buf[38]);    //30---38--4
	free(buf[1]);     //31---1
	free(buf[30]);    //32---30
	free(buf[75]);    //33---75
	free(buf[8]);     //34--8
	free(buf[24]);    //35---24
	free(buf[98]);    //36---98
	free(buf[17]);    //37---17
	free(buf[52]);    //38--52
	free(buf[40]);    //39---40
	free(buf[18]);    //0---18--1
	free(buf[10]);    //1--10
	free(buf[32]);    //2---32
	free(buf[33]);    //3---33
	free(buf[55]);    //4---55
	free(buf[46]);    //5---46
	free(buf[97]);    //6---97
	free(buf[66]);    //7---66
	free(buf[0]);     //8---0
	free(buf[70]);    //9---70
	free(buf[26]);    //70---26--8
	free(buf[49]);    //71---49
	free(buf[85]);    //72---85
	free(buf[12]);    //73--12
	free(buf[86]);    //74---86
	free(buf[87]);    //75---87
	free(buf[16]);    //76---16
	free(buf[88]);    //77---88
	free(buf[29]);    //78---29
	free(buf[36]);    //79--36
	free(buf[4]);     //40---4--5
	free(buf[63]);    //41---63
	free(buf[76]);    //42---76
	free(buf[47]);    //43---47
	free(buf[77]);    //44---77
	free(buf[11]);    //45--11
	free(buf[78]);    //46---78
	free(buf[44]);    //47---44
	free(buf[3]);     //48---3
	free(buf[68]);    //49---68
	free(buf[54]);    //10---54--2
	free(buf[22]);    //11---22
	free(buf[65]);    //12---65
	free(buf[39]);    //13---39
	free(buf[7]);     //14--7
	free(buf[25]);    //15---25
	free(buf[41]);    //16---41
	free(buf[31]);    //17---31
	free(buf[71]);    //18---71
	free(buf[72]);    //19---72
	free(buf[5]);     //80---5--9
	free(buf[58]);    //81---58
	free(buf[89]);    //82---89
	free(buf[42]);    //83---42
	free(buf[90]);    //84---90
	free(buf[91]);    //85---91
	free(buf[28]);    //86---28
	free(buf[92]);    //87---92
	free(buf[50]);    //88---50
	free(buf[93]);    //89---93
	free(buf[19]);    //20---19--3
	free(buf[73]);    //21---73
	free(buf[74]);    //22---74
	free(buf[9]);     //23--9
	free(buf[69]);    //24---69
	free(buf[21]);    //25---21
	free(buf[45]);    //26---45
	free(buf[64]);    //27---64
	free(buf[20]);    //28---20
	free(buf[53]);    //29---53
	free(buf[59]);    //90---59--10
	free(buf[15]);    //91---15
	free(buf[94]);    //92---94
	free(buf[51]);    //93---51
	free(buf[95]);    //94---95
	free(buf[27]);    //95---27
	free(buf[96]);    //96---96
	free(buf[35]);    //97---35
	free(buf[60]);    //98---60
	free(buf[14]);    //99---14
	free(buf[37]);    //50---37--6
	free(buf[79]);    //51---79
	free(buf[23]);    //52---23
	free(buf[80]);    //53---80
	free(buf[34]);    //54---34
	free(buf[2]);     //55---2
	free(buf[56]);    //56---56
	free(buf[48]);    //57---48
	free(buf[62]);    //58---62
	free(buf[81]);    //59---81
	for (i=0;i<100;i++)
	{
		mem_add=malloc(16384);
		*((char*)mem_add)=i;
		*((char*)mem_add+1)=i+1;
		*((char*)mem_add+2)=i+2;
		*((char*)mem_add+3)=i+3;
		buf[i]=mem_add;
	}

	dump[99]=buf[19];    //20---19--3
	dump[98]=buf[73];    //21---73
	dump[97]=buf[74];    //22---74
	dump[96]=buf[9];     //23--9
	dump[95]=buf[69];    //24---69
	dump[94]=buf[21];    //25---21
	dump[93]=buf[45];    //26---45
	dump[92]=buf[64];    //27---64
	dump[91]=buf[20];    //28---20
	dump[90]=buf[53];    //29---53
	dump[89]=buf[59];    //90---59--10
	dump[88]=buf[15];    //91---15
	dump[87]=buf[94];    //92---94
	dump[86]=buf[51];    //93---51
	dump[85]=buf[95];    //94---95
	dump[84]=buf[27];    //95---27
	dump[83]=buf[96];    //96---96
	dump[82]=buf[35];    //97---35
	dump[81]=buf[60];    //98---60
	dump[80]=buf[14];    //99---14
	dump[79]=buf[54];    //10---54--2
	dump[78]=buf[22];    //11---22
	dump[77]=buf[65];    //12---65
	dump[76]=buf[39];    //13---39
	dump[75]=buf[7];     //14--7
	dump[74]=buf[25];    //15---25
	dump[73]=buf[41];    //16---41
	dump[72]=buf[31];    //17---31
	dump[71]=buf[71];    //18---71
	dump[70]=buf[72];    //19---72
	dump[69]=buf[13];    //60--13--7
	dump[68]=buf[82];    //61---82
	dump[67]=buf[99];     //62---99
	dump[66]=buf[67];    //63---67
	dump[65]=buf[43];    //64---43
	dump[64]=buf[83];    //65---83
	dump[63]=buf[6];     //66---6
	dump[62]=buf[84];    //67---84
	dump[61]=buf[57];    //68---57
	dump[60]=buf[61];    //69---61
	dump[59]=buf[5];     //80---5--9
	dump[58]=buf[58];    //81---58
	dump[57]=buf[89];    //82---89
	dump[56]=buf[42];    //83---42
	dump[55]=buf[90];    //84---90
	dump[54]=buf[91];    //85---91
	dump[53]=buf[28];    //86---28
	dump[52]=buf[92];    //87---92
	dump[51]=buf[50];    //88---50
	dump[50]=buf[93];    //89---93
	dump[49]=buf[4];     //40---4--5
	dump[48]=buf[63];    //41---63
	dump[47]=buf[76];    //42---76
	dump[46]=buf[47];    //43---47
	dump[45]=buf[77];    //44---77
	dump[44]=buf[11];    //45--11
	dump[43]=buf[78];    //46---78
	dump[42]=buf[44];    //47---44
	dump[41]=buf[3];     //48---3
	dump[40]=buf[68];    //49---68
	dump[39]=buf[26];    //70---26--8
	dump[38]=buf[49];    //71---49
	dump[37]=buf[85];    //72---85
	dump[36]=buf[12];    //73--12
	dump[35]=buf[86];    //74---86
	dump[34]=buf[87];    //75---87
	dump[33]=buf[16];    //76---16
	dump[32]=buf[88];    //77---88
	dump[31]=buf[29];    //78---29
	dump[30]=buf[36];    //79--36
	dump[29]=buf[18];    //0---18--1
	dump[28]=buf[10];    //1--10
	dump[27]=buf[32];    //2---32
	dump[26]=buf[33];    //3---33
	dump[25]=buf[55];    //4---55
	dump[24]=buf[46];    //5---46
	dump[23]=buf[97];    //6---97
	dump[22]=buf[66];    //7---66
	dump[21]=buf[0];     //8---0
	dump[20]=buf[70];    //9---70
	dump[19]=buf[38];    //30---38--4
	dump[18]=buf[1];     //31---1
	dump[17]=buf[30];    //32---30
	dump[16]=buf[75];    //33---75
	dump[15]=buf[8];     //34--8
	dump[14]=buf[24];    //35---24
	dump[13]=buf[98];    //36---98
	dump[12]=buf[17];    //37---17
	dump[11]=buf[52];    //38--52
	dump[10]=buf[40];    //39---40
	dump[9]=buf[37];    //50---37--6
	dump[8]=buf[79];    //51---79
	dump[7]=buf[23];    //52---23
	dump[6]=buf[80];    //53---80
	dump[5]=buf[34];    //54---34
	dump[4]=buf[2];     //55---2
	dump[3]=buf[56];    //56---56
	dump[2]=buf[48];    //57---48
	dump[1]=buf[62];    //58---62
	dump[0]=buf[81];    //59---81

	//3-10-2-7-9-5-8-1-4-6
	free(buf[19]);    //20---19--3
	free(buf[73]);    //21---73
	free(buf[74]);    //22---74
	free(buf[9]);     //23--9
	free(buf[69]);    //24---69
	free(buf[21]);    //25---21
	free(buf[45]);    //26---45
	free(buf[64]);    //27---64
	free(buf[20]);    //28---20
	free(buf[53]);    //29---53
	free(buf[59]);    //90---59--10
	free(buf[15]);    //91---15
	free(buf[94]);    //92---94
	free(buf[51]);    //93---51
	free(buf[95]);    //94---95
	free(buf[27]);    //95---27
	free(buf[96]);    //96---96
	free(buf[35]);    //97---35
	free(buf[60]);    //98---60
	free(buf[14]);    //99---14
	free(buf[54]);    //10---54--2
	free(buf[22]);    //11---22
	free(buf[65]);    //12---65
	free(buf[39]);    //13---39
	free(buf[7]);     //14--7
	free(buf[25]);    //15---25
	free(buf[41]);    //16---41
	free(buf[31]);    //17---31
	free(buf[71]);    //18---71
	free(buf[72]);    //19---72
	free(buf[13]);    //60--13--7
	free(buf[82]);    //61---82
	free(buf[99]);     //62---99
	free(buf[67]);    //63---67
	free(buf[43]);    //64---43
	free(buf[83]);    //65---83
	free(buf[6]);     //66---6
	free(buf[84]);    //67---84
	free(buf[57]);    //68---57
	free(buf[61]);    //69---61
	free(buf[5]);     //80---5--9
	free(buf[58]);    //81---58
	free(buf[89]);    //82---89
	free(buf[42]);    //83---42
	free(buf[90]);    //84---90
	free(buf[91]);    //85---91
	free(buf[28]);    //86---28
	free(buf[92]);    //87---92
	free(buf[50]);    //88---50
	free(buf[93]);    //89---93
	free(buf[4]);     //40---4--5
	free(buf[63]);    //41---63
	free(buf[76]);    //42---76
	free(buf[47]);    //43---47
	free(buf[77]);    //44---77
	free(buf[11]);    //45--11
	free(buf[78]);    //46---78
	free(buf[44]);    //47---44
	free(buf[3]);     //48---3
	free(buf[68]);    //49---68
	free(buf[26]);    //70---26--8
	free(buf[49]);    //71---49
	free(buf[85]);    //72---85
	free(buf[12]);    //73--12
	free(buf[86]);    //74---86
	free(buf[87]);    //75---87
	free(buf[16]);    //76---16
	free(buf[88]);    //77---88
	free(buf[29]);    //78---29
	free(buf[36]);    //79--36
	free(buf[18]);    //0---18--1
	free(buf[10]);    //1--10
	free(buf[32]);    //2---32
	free(buf[33]);    //3---33
	free(buf[55]);    //4---55
	free(buf[46]);    //5---46
	free(buf[97]);    //6---97
	free(buf[66]);    //7---66
	free(buf[0]);     //8---0
	free(buf[70]);    //9---70
	free(buf[38]);    //30---38--4
	free(buf[1]);     //31---1
	free(buf[30]);    //32---30
	free(buf[75]);    //33---75
	free(buf[8]);     //34--8
	free(buf[24]);    //35---24
	free(buf[98]);    //36---98
	free(buf[17]);    //37---17
	free(buf[52]);    //38--52
	free(buf[40]);    //39---40
	free(buf[37]);    //50---37--6
	free(buf[79]);    //51---79
	free(buf[23]);    //52---23
	free(buf[80]);    //53---80
	free(buf[34]);    //54---34
	free(buf[2]);     //55---2
	free(buf[56]);    //56---56
	free(buf[48]);    //57---48
	free(buf[62]);    //58---62
	free(buf[81]);    //59---81

	for (i=0;i<100;i++)
	{
		mem_add=malloc(16384);
		*((char*)mem_add)=i;
		*((char*)mem_add+1)=i+1;
		*((char*)mem_add+2)=i+2;
		*((char*)mem_add+3)=i+3;
		buf[i]=mem_add;
	}
        for(;;);	
}


